package cn.lili.modules.promotion.mapper;

import cn.lili.modules.promotion.entity.dos.AdvertisingSpace;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author:xiangqian
 * @date: 2024/4/17 9:16
 */
public interface AdvertisingSpaceMapper extends BaseMapper<AdvertisingSpace> {

    /**
     * 根据标识查询广告位
     */
    @Select("select * from li_advertising_space where space_index = #{spaceIndex} limit 1")
    AdvertisingSpace getByIndex(@Param("spaceIndex") String spaceIndex);
}
